//
//  msgModel.m
//  marrymarry
//
//  Created by lsj on 16/10/10.
//  Copyright © 2016年 cf. All rights reserved.
//

#import "msgModel.h"
@interface msgModel()
@property (nonatomic,strong) NSMutableArray * picArry;
@property (nonatomic,strong) NSMutableArray * titleNameArry;
@property (nonatomic,strong) NSMutableArray * infoArry;
@property (nonatomic,strong) NSMutableDictionary * myDic;
@property (nonatomic,strong) NSMutableArray * myBigArry;
@end

@implementation msgModel
-(NSMutableArray *)picArry
{
    if (!_picArry) {
        _picArry = [NSMutableArray arrayWithArray:@[@"gift.png",@"xindong.png",@"fangke.png",@"zuji.png"]];
    }
    return _picArry;
}

-(NSMutableArray *)titleNameArry
{
    if (!_titleNameArry) {
        _titleNameArry = [NSMutableArray arrayWithArray:@[@"礼物",@"心动",@"访客",@"足迹"]];
    }
    return _titleNameArry;
}

-(NSMutableArray *)infoArry
{
    if (!_infoArry) {
        _infoArry = [NSMutableArray arrayWithArray:@[@"给你购买礼物，这里查看想和你交往的人",@"查看对你心动的人",@"查看最近访问过你的人",@"我访问过让我心动的人"]];
        
    }
    return _infoArry;
}

-(NSMutableArray *)myBigArry
{
    if (!_myBigArry) {
        _myBigArry = [NSMutableArray new];
        for (int i = 0; i<self.picArry.count; i++) {
            self.myDic = [NSMutableDictionary new];
            [self.myDic setObject:self.picArry[i] forKey:@"head_img"];
            [self.myDic setObject:self.titleNameArry[i] forKey:@"title_name"];
            [self.myDic setObject:self.infoArry[i] forKey:@"title_info"];
            [_myBigArry addObject:self.myDic];
        }
        
    }
    return _myBigArry;
}


-(NSMutableArray *)backWithFourSetArry
{
    NSMutableArray * myarry = [NSMutableArray new];
    for (NSDictionary * dic  in self.myBigArry) {
        msgModel * model = [msgModel new];
        model.imgName = dic[@"head_img"];
        model.titleName = dic[@"title_name"];
        model.detailInfo = dic[@"title_info"];
        [myarry addObject:model];    
    }
    
    return myarry;
}
@end
